﻿@page
@model WXWorkSvc.Areas.Admin.Pages.Corp.IndexModel

@{
    ViewData["Title"] = "第三方企业";
}
<h4>@ViewData["Title"]</h4>
<hr />

<table class="table">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.TCorp[0].Id)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.TCorp[0].Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.TCorp[0].IsAuth)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.TCorp[0].Dt)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.TCorp[0].ExtId)
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.TCorp)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.Id)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.IsAuth)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Dt)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ExtId)
                </td>
                <td>
                    @if (item.IsAuth)
                    {
                        <a asp-page="./../Agent/Index" asp-route-id="@item.Id">Agents</a>
                    }
                </td>
            </tr>
        }
    </tbody>
</table>
